home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / printDialog.xul < prev    next >
Extensible Markup Language  |  2007-02-13  |  6KB  |  160 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is OEone Calendar Code, released October 31st, 2001.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - OEone Corporation.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s): Garth Smedley <garths@oeone.com> 
  23.    -                 Mike Potter <mikep@oeone.com>
  24.    -                 Colin Phillips <colinp@oeone.com> 
  25.    -                 Chris Charabaruk <ccharabaruk@meldstar.com>
  26.    -                 ArentJan Banck <ajbanck@planet.nl>
  27.    -                 Chris Allen <chris@netinflux.com>
  28.    -                 Matthew Willis <mattwillis@gmail.com>
  29.    -
  30.    - Alternatively, the contents of this file may be used under the terms of
  31.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  32.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  33.    - in which case the provisions of the GPL or the LGPL are applicable instead
  34.    - of those above. If you wish to allow use of your version of this file only
  35.    - under the terms of either the GPL or the LGPL, and not to allow others to
  36.    - use your version of this file under the terms of the MPL, indicate your
  37.    - decision by deleting the provisions above and replace them with the notice
  38.    - and other provisions required by the LGPL or the GPL. If you do not delete
  39.    - the provisions above, a recipient may use your version of this file under
  40.    - the terms of any one of the MPL, the GPL or the LGPL.
  41.    -
  42.    - ***** END LICENSE BLOCK ***** -->
  43.  
  44. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  45.  
  46. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  47.  
  48. <!-- CSS File with all styles specific to the dialog -->
  49. <?xml-stylesheet href="chrome://calendar/skin/dialogOverlay.css" type="text/css"?>
  50.  
  51. <?xml-stylesheet href="chrome://calendar/content/datetimepickers/datetimepickers.css" type="text/css" ?>
  52.  
  53. <!-- DTD File with all strings specific to the calendar -->
  54. <!DOCTYPE dialog 
  55. [
  56.     <!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
  57.     <!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
  58.     <!ENTITY % dtd3 SYSTEM "chrome://calendar/locale/menuOverlay.dtd"> %dtd3;
  59. ]>
  60.  
  61.  
  62. <dialog
  63.    id="calendar-new-printwindow"
  64.    title="&calendar.print.window.title;"
  65.    onload="loadCalendarPrintDialog()"
  66.    buttons="accept,cancel"
  67.    buttonlabelaccept="&calendar.print.button.label;"
  68.    buttonaccesskeyaccept="&calendar.print.accesskey;"
  69.    defaultButton="accept"
  70.    ondialogaccept="return printAndClose();"
  71.    ondialogcancel="return true;"
  72.    persist="screenX screenY width height"
  73.    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  74.    xmlns:nc="http://home.netscape.com/NC-rdf#">
  75.  
  76.   <script type="application/x-javascript" src="chrome://calendar/content/printDialog.js"/>
  77.   <script type="application/x-javascript" src="chrome://calendar/content/calUtils.js"/>
  78.   <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  79.  
  80.   <hbox id="firstHbox" flex="1">
  81.     <vbox id="groupboxVbox">
  82.  
  83.       <groupbox id="settingsGroup">
  84.         <caption label="&calendar.print.settingsGroup.label;"/>
  85.  
  86.         <grid>
  87.           <columns>
  88.             <column/>
  89.             <column flex="1"/>
  90.           </columns>
  91.  
  92.           <rows>
  93.             <row align="center">
  94.               <label class="field-label-box-class"
  95.                      control="title-field"
  96.                      value="&calendar.print.title.label;"/>
  97.               <textbox id="title-field"
  98.                        class="padded"
  99.                        flex="1"
  100.                        onchange="refreshHtml();"/>
  101.             </row>
  102.             <row align="center">
  103.               <label class="field-label-box-class"
  104.                      control="layout-field"
  105.                      value="&calendar.print.layout.label;"/>
  106.               <hbox>
  107.                 <menulist id="layout-field">
  108.                   <!-- This menupopup will be populated by printDialog.js -->
  109.                   <menupopup id="layout-menulist-menupopup"
  110.                              oncommand="refreshHtml();"/>
  111.                 </menulist>
  112.                 <spacer flex="1"/>
  113.               </hbox>
  114.             </row>
  115.           </rows>
  116.         </grid>
  117.       </groupbox>
  118.  
  119.       <groupbox id="whatToPrintGroup">
  120.         <caption label="&calendar.print.range.label;"/>
  121.         <radiogroup id="view-field" oncommand="refreshHtml();">
  122.           <radio id="printCurrentViewRadio"
  123.                  label="&calendar.print.currentview.label;"
  124.                  value="currentview"/>
  125.           <radio id="selected" label="&calendar.print.selected.label;"
  126.                  value="selected"/>
  127.           <radio id="custom-range" label="&calendar.print.custom.label;"
  128.                  value="custom"/>
  129.           <grid>
  130.             <columns>
  131.               <column/>
  132.               <column flex="1"/>
  133.             </columns>
  134.  
  135.             <rows>
  136.               <row align="center">
  137.                 <label class="field-label-box-class"
  138.                        control="start-date-picker"
  139.                        value="&calendar.print.from.label;"/>
  140.                 <datepicker id="start-date-picker" onchange="onDatePick();"/>
  141.               </row>
  142.               <row align="center">
  143.                 <label class="field-label-box-class"
  144.                        control="end-date-picker"
  145.                        value="&calendar.print.to.label;"/>
  146.                 <datepicker id="end-date-picker" onchange="onDatePick();"/>
  147.               </row>
  148.             </rows>
  149.           </grid>
  150.         </radiogroup>
  151.       </groupbox>
  152.     </vbox>
  153.  
  154.     <splitter/>
  155.  
  156.     <iframe src="about:blank" id="content" flex="1"
  157.             style="border: 2px solid #3c3c3c; width:30em; height:30em;"/>
  158.   </hbox>
  159. </dialog>
  160.